<?php
namespace App\Http\Service;

class BaseService
{
    private static $_instance;

    public function __construct()
    {

    }

    public static function service()
    {
        $class = get_called_class();
        if (!isset(self::$_instance[$class])) {
            self::$_instance[$class] = new static();
        }
        return self::$_instance[$class];
    }
}
